home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 February / macformat-034.iso / mac / Shareware City / Developers / appe Windows 2.03 / main.h < prev    next >
Encoding:
Text File  |  1995-06-11  |  2.2 KB  |  67 lines  |  [TEXT/CWIE]

  1. // File "main.h" - 
  2.  
  3. #ifndef ____MAIN_HEADER____
  4. #define ____MAIN_HEADER____
  5.  
  6. #ifndef __PROCESSES__
  7. #include <Processes.h>
  8. #endif  __PROCESSES__
  9.  
  10. // * ****************************************************************************** *
  11. // * ****************************************************************************** *
  12.  
  13. #define kAppleMenuID            128
  14. #define kAppleMenuAboutItem          1
  15. #define kAppleMenuSeparator1      2
  16.  
  17. #define kFileMenuID                129
  18. #define kFileMenuNewItem          1
  19. #define kFileMenuSeparator1          2
  20. #define kFileMenuQuitItem          3
  21.  
  22. #define kEditMenuID                130
  23. #define kEditMenuUndoItem          1
  24. #define kEditMenuSeparator1          2
  25. #define kEditMenuCutItem          3
  26. #define kEditMenuCopyItem          4
  27. #define kEditMenuPasteItem          5
  28. #define kEditMenuClearItem          6
  29.  
  30. // * ****************************************************************************** *
  31. // * ****************************************************************************** *
  32.  
  33. typedef struct {
  34.     Boolean bkgdOnly;        // Is the process an FBA ('appe') or normal app ('APPL')
  35.     Boolean hasColorQD;        // Check once in case we need to know later
  36.     Boolean hasGDevices;    // Check once in case we need to know later
  37.     Boolean hasDragMgr;        // If we have it, we get all kinds of kewl functionality.
  38.     Boolean quitting;        // A simple flag (set from AE handlers) to close up shop
  39.  
  40.     Boolean hideFloats;        // A user controlled hide flag for showing/hiding floaters
  41.     Boolean blockFloats;    // An overriding hide flag for screen savers/full-screen apps
  42.     Boolean modalFloats;    // An overriding hide flag for our own modal dialogs
  43.  
  44.     EventRecord theEvent;    // The event currently being processed
  45.     QHdr forwardedEvents;    // A queue of EventRecords that are forwarded from our filter
  46.     QHdr allFloatWindows;    // A queue of WindowPtrs that track each TSM Floater that was
  47.                             //   installed, so that the filter can intercept their events.
  48.     
  49.     ProcessSerialNumber myPSN;
  50.     Ptr filterProc;
  51.     } GlobalsRec;
  52.  
  53. // * ****************************************************************************** *
  54. // * ****************************************************************************** *
  55. // Function Prototypes
  56.  
  57. void DoTest(void);
  58. void DoInit(void);
  59. void DoLoop(void);
  60. void DoMenuItem(long theMenuAndItem);
  61. void DoDispose(void);
  62.  
  63. void main(void);
  64.  
  65. #endif  ____MAIN_HEADER____
  66.  
  67.